package com.example.bidding.scheduler;

import com.example.bidding.mapper.RepayRecordMapper;
import com.example.common.pojo.RepayRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 小许
 * @Title:
 * @Package
 * @Description:
 * @date 2020/11/28-15:28
 */

@Component
public class Scheduler {
    @Autowired
    private RepayRecordMapper repayRecordMapper;


    @Scheduled(cron = "0 0 0 ? * *")
    public void repayDate() {
        List<RepayRecord> repayRecords = repayRecordMapper.selectByToday();

    }

}
